package prv.pursuivant.config.impl;

import prv.pursuivant.config.ImporterDesc;

/**
 * Wow-Armory Importer description
 * 
 * @author Kwinto
 * 
 */

public class ImporterDescImpl implements ImporterDesc {

	/**
	 * region of the realm
	 */
	private final String region;

	/**
	 * name of the realm
	 */
	private final String realm;

	/**
	 * location of the cache
	 */
	private final String cacheDir;

	/**
	 * validity of the cache in minutes
	 */
	private final Integer cacheTime;

	/**
	 * @param region
	 * @param realm
	 * @param cacheDir
	 * @param cacheTime
	 */
	public ImporterDescImpl(String region, String realm, String cacheDir,
			Integer cacheTime) {
		this.region = region;
		this.realm = realm;
		this.cacheDir = cacheDir;
		this.cacheTime = cacheTime;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see prv.pursuivant.config.ImporterDesc#getRegion()
	 */
	public String getRegion() {
		return this.region;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see prv.pursuivant.config.ImporterDesc#getRealm()
	 */
	public String getRealm() {
		return this.realm;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see prv.pursuivant.config.ImporterDesc#getCacheDir()
	 */
	public String getCacheDir() {
		return this.cacheDir;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see prv.pursuivant.config.ImporterDesc#getCacheTime()
	 */
	public Integer getCacheTime() {
		return this.cacheTime;
	}

}
